package edu.zcmu.seckill.enumeration;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;

@Getter
@AllArgsConstructor
public enum GlobalEnum {
    //redis
    GET_ALL_PRODUCT_REDIS("全部产品缓存","product:all"),
    GET_PRODUCT_INFO_REDIS("指定产品缓存","product:"),
    GET_PRODUCT_COUNT_REDIS("指定产品库存缓存","product:count:"),
    GET_PRODUCT_POLICY_REDIS("产品准则缓存","product:policy:"),

    SECKILL_PRODUCT_PATH("秒杀地址","seckillPath:"),
    GET_ALL_SECKILL_PRODUCT_REDIS("全部秒杀产品缓存","sekillproduct:all"),
    GET_SECKILL_PRODUCT_POLICY_REDIS("秒杀产品准则缓存","sekillproduct:policy:"),
    GET_SECKILL_PRODUCT_REDIS("指定秒杀产品缓存","sekillproduct:"),
    GET_SECKILL_PRODUCT_COUNT_REDIS("指定秒杀产品库存缓存","sekillproduct:count:"),

    USER_SECKILL_PRODUCT_IS("用户订单缓存","sekillproduct:order:"),
    USER_SECKILL_PRODUCT_IS_EXPIRATION("用户订单缓存过期判断","sekillproduct:order:expiration:"),
    VERIFY_CODE("验证码","VerifyCode:");

    private String describe;
    private String code;
}
